package com.czl.module_service.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.czl.base.data.bean.tengyun.AddSortBean
import com.czl.module_service.R
import com.czl.module_service.databinding.ItemAddSortBinding

/**
 * @author by xubin,
 * @date on 2022/1/20.
 * PS: Not easy to write code, please indicate.
 */
class AddSortAdapter(data: MutableList<AddSortBean>) :
    BaseQuickAdapter<AddSortBean, BaseDataBindingHolder<ItemAddSortBinding>>(
        R.layout.item_add_sort, data
    ) {
    override fun convert(holder: BaseDataBindingHolder<ItemAddSortBinding>, item: AddSortBean) {
        holder.dataBinding?.run {
            data = item
        }
    }
}